﻿using System;
using Socium.Domain.Persons;

namespace Socium.Persons {
	class GenderOption {
		readonly string _name;
		readonly Gender _value;

		public GenderOption(string name, Gender value) {
			if (string.IsNullOrEmpty(name)) {
				throw new ArgumentException();
			}

			_name = name;
			_value = value;
		}

		public Gender Value {
			get { return _value; }
		}

		public override string ToString() {
			return _name;
		}
	}
}
